package com.gitee.wsl.doc.prosemirror.model.node.ext

import com.gitee.wsl.doc.prosemirror.model.node.Node

fun Node.canCut( start: Int, end: Int) =
    (start == 0 || canReplace(start, childCount)) && (end == childCount || canReplace(0, end))
